#include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>

using namespace std;
std::mutex m;

void print(int a, int b)
{
    cout<<"helloworld "<<a<<","<<b<<endl;
}

int main()
{
    // thread t(print, 10, 20);
    // cout<<t.get_id()<<endl;
    // cout<<t.hardware_concurrency()<<endl;
    // t.join();

    thread t[10];
    int i= 0;
    for(auto &thread:t)
    {
        i++;
        thread = std::thread(print, i);
    }

    for(auto &thread:t)
    {
        
    }
    return 0;
}